<?
	header('Access-Control-Allow-Origin: *');
	header('Access-Control-Allow-Methods: POST, GET, OPTIONS');
	header('Access-Control-Max-Age: 1000');
	header('Access-Control-Allow-Headers: Content-Type');
	header('Content-type: application/json');	
	/**
	*
	*	@autor: Damis Garcia
	*
	**/

	include '../class/JSON.class.php';

	// INIT
	$obj_json = new JSON();
	$json = json_decode( $obj_json->getXml('http://admin.iluria.com/xml/buscape/?user=7C36F62836875007E9EDABA31B6541D9') );	
?>
<div class='ui-grid-a ws-produtos'>	
<? foreach ($json->produto as $key => $value) { ?>				
				<? if(! ( ($key % 2) == 1) ){ ?>
					<div class='ui-block-a'>
						<? include 'partials/_produto.php' ?>
					</div>						
				<? } else{ ?>				
					<div class='ui-block-b'>
						<? include 'partials/_produto.php' ?>
					</div>					
				<? } ?>						
		<? } ?>	
</div>